package ink.yuanchu.picachoframework.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ink.yuanchu.picachoframework.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author ziyuan
 * @Date: 2021/02/19/14:36
 * @Description:
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 查询所有
     * @return
     */
    List<User> selectAll();

    /**
     * 根据用户名查找
     * @param name
     * @return
     */
    User findUserByUsername(String name);
}
